Add (yet unused) addUSec shim to datetime so we can begin migrating our
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 13 Jun 2013 04:45:48 +0000 (04:45 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 13 Jun 2013 04:45:48 +0000 (04:45 +0000)
explicit microsec use.

gpsbabel/src/core/datetime.h

index b7f8e1edfed8711690cc14e95a26c31750d37937..0270ba81909b0272a0fb7083c1a6a3222a9c91de 100644 (file)
@@ -79,6 +79,13 @@ public:
     return &t_;
   }
 
+  // Before Qt, GPSBabel had a 'microseconds' which is excessive and
+  // not really supported in QDateTime.  Milliseconds is fine, but we
+  // provide these shims for code that used usecs.
+  void addUSecs(qint64 usecs) const {
+    this->addMSecs(usecs / 1000);
+  }
+
   // Integer form: YYMMDD
   int ymd() const {
     QDate date(this->date());